// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.

const ipc = require('electron').ipcRenderer
console.log(require('electron'))

var el=document.querySelector('.container nav'),
webview=document.querySelector('webview')

el.addEventListener('click',()=>{
    ipc.send('open-window-2',webview)
})